<?php
	if ($_GET['do'] == 'display')
	{
		$sql = new db();
		$req = 'SELECT * FROM camion  WHERE GLN_Transporteur = '.$_SESSION['login'];
		$sql->query($req);
		$array = array();
		while ($res = $sql->fetch_array())
			$array[] = $res;
	}
	else if($_GET['do'] == 'delete')
	{
		$sql = new db();
		$req = "DELETE camion FROM camion WHERE Matricule =".$_GET['del'];
		$sql->query($req);
		header("location:".ABS_PATH.ROOT."?page=Transporteur/GestCamion&fct=Transporteur/GestCamion&do=display");	
	}
?>